package com.tuanzi.loan.business.service.statistics;

import com.tuanzi.loan.business.entity.statistics.AdverChannelTypeUser;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.Collaborate.CollaborateAdvertiseConfigListRequest;
import com.tuanzi.loan.vo.response.collaborate.CollaborateAdvertiseConfigListResponse;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author Simon
 * @date 2019/07/29 14:29
 */
public interface AdverChannelTypeUserService{

    Page<CollaborateAdvertiseConfigListResponse> list(PageSearcher<CollaborateAdvertiseConfigListRequest> pageSearcher);

    AdverChannelTypeUser findOne(Long id);

    List<AdverChannelTypeUser> findAccount(Long id);

    AdverChannelTypeUser saveOrUpdate(AdverChannelTypeUser advertise);

    List<AdverChannelTypeUser> findCurrentUserChannels();

    void delete(Long id);

    void delete(String account);

}
